package cn.getech.data.development.model.vo;

import cn.getech.data.development.utils.spring.CustomerDoubleSerialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CMClusterCPUVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("横坐标时间")
    private String x;

    @ApiModelProperty("纵坐标")
    @JsonSerialize(using = CustomerDoubleSerialize.class)
    private Double y;

    @ApiModelProperty("示例数量")
    private Integer count;

    @ApiModelProperty("最大百分比")
    private Double max;

    @ApiModelProperty("最小百分比")
    private Double min;

    @ApiModelProperty("平均百分比")
    private Double mean;

    @ApiModelProperty("最大对应的时间")
    private Date maxTimestampMs;

    @ApiModelProperty("最小对应的时间")
    private Date minTimestampMs;

    @ApiModelProperty("标准偏差")
    private Double stdDev;

    @ApiModelProperty("最大对应的节点名称")
    private String maxEntityName;

    @ApiModelProperty("最小对应的节点名称")
    private String minEntityName;

}
